<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<title>KSYMEConcator Class Reference</title>

	<link rel="stylesheet" href="../css/style.css">
	<meta name="viewport" content="initial-scale=1, maximum-scale=1.4">
	<meta name="generator" content="appledoc 2.2.1 (build 1334)">
</head>
<body class="appledoc">
	<header>
		<div class="container" class="hide-in-xcode">
			
			<h1 id="library-title">
				<a href="../index.html">KSYMediaEditorKit </a>
			</h1>

			<p id="developer-home">
				<a href="../index.html">Kingsoft</a>
			</p>
			
		</div>
	</header>

	<aside>
		<div class="container">
			<nav>
				<ul id="header-buttons" role="toolbar">
					<li><a href="../index.html">Index</a></li>
<li><a href="../hierarchy.html">Hierarchy</a></li>

					<li id="on-this-page" role="navigation">
						<label>
							On This Page

							<div class="chevron">
								<div class="chevy chevron-left"></div>
								<div class="chevy chevron-right"></div>
							</div>

							<select id="jump-to">
	<option value="top">Jump To&#133;</option>
	
	<option value="overview">Overview</option>
	

	
	
	<option value="tasks">Tasks</option>
	
	

	
	
	<optgroup label="Properties">
		
		<option value="//api/name/concating">concating</option>
		
		<option value="//api/name/delegate">delegate</option>
		
	</optgroup>
	

	

	
	<optgroup label="Instance Methods">
		
		<option value="//api/name/addVideo:">- addVideo:</option>
		
		<option value="//api/name/addVideos:">- addVideos:</option>
		
		<option value="//api/name/cancelConcat">- cancelConcat</option>
		
		<option value="//api/name/concatVideos:">- concatVideos:</option>
		
		<option value="//api/name/concatVideos:resizeMode:resolution:outputURL:">- concatVideos:resizeMode:resolution:outputURL:</option>
		
		<option value="//api/name/removeAllVideos">- removeAllVideos</option>
		
		<option value="//api/name/removeVideo:">- removeVideo:</option>
		
		<option value="//api/name/startConcat">- startConcat</option>
		
	</optgroup>
	
	
</select>
						</label>
					</li>
				</ul>
			</nav>
		</div>
	</aside>

	<article>
		<div id="overview_contents" class="container">
			<div id="content">
				<main role="main">
					<h1 class="title">KSYMEConcator Class Reference</h1>

					
					<div class="section section-specification"><table cellspacing="0"><tbody>
						<tr>
	<th>Inherits from</th>
	<td>NSObject</td>
</tr><tr>
	<th>Declared in</th>
	<td>KSYMEConcator.h</td>
</tr>
						</tbody></table></div>
					

                    
					
					<div class="section section-overview">
						<a title="Overview" name="overview"></a>
						<h2 class="subtitle subtitle-overview">Overview</h2>
						<ul>
<li>KSYMEConcator 为多段视频拼接工具 *</li>
</ul>

					</div>
					
					

					
					
					<div class="section section-tasks">
						<a title="Tasks" name="tasks"></a>
						

						
						

						<div class="task-list">
							<div class="section-method">
	<a name="//api/name/delegate" title="delegate"></a>
	<h3 class="method-title"><code><a href="#//api/name/delegate">&nbsp;&nbsp;delegate</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p><a href="../Protocols/KSYMEConcatorDelegate.html">KSYMEConcatorDelegate</a></p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, weak) id&lt;KSYMEConcatorDelegate&gt; delegate</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/concating" title="concating"></a>
	<h3 class="method-title"><code><a href="#//api/name/concating">&nbsp;&nbsp;concating</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>视频拼接中</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>@property (nonatomic, assign, getter=isConcating) BOOL concating</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/addVideo:" title="addVideo:"></a>
	<h3 class="method-title"><code><a href="#//api/name/addVideo:">&ndash;&nbsp;addVideo:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     添加一个待处理的视频文件到编辑引擎（仅支持本地文件）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (KSYStatusCode)addVideo:(NSURL *)<em>url</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>本地文件地址</p></td>
					</tr>
				
				</table>
			</div>
			

			
			<div class="method-subsection return">
				<h4 class="method-subtitle parameter-title">Return Value</h4>
				<p>添加状态</p>

<p>@discussion
     1.目前仅支持添加一条视频，新添加的视频将会覆盖之前添加的视频
     2.频处理进行中时不能操作</p>
			</div>
			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/addVideos:" title="addVideos:"></a>
	<h3 class="method-title"><code><a href="#//api/name/addVideos:">&ndash;&nbsp;addVideos:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     添加多个待处理的视频文件</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (KSYStatusCode)addVideos:(NSArray&lt;__kindofNSURL*&gt; *)<em>paths</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>paths</code></th>
						<td><p>文件列表, 无效文件不会被添加</p>

<p>@discussion
     添加多段视频后可调用startConcat进行视频拼接
     1.目前对多段视频的操作，仅支持多段视频合成
     2.视频合成进行中时不可操作
     3.添加至videolist中，会覆盖videolist原有数据</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeVideo:" title="removeVideo:"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeVideo:">&ndash;&nbsp;removeVideo:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     移除videolist中对应的URL视频（视频未删除）</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)removeVideo:(NSURL *)<em>url</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>url</code></th>
						<td><p>视频对应的路径</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>视频处理进行中时不能操作</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/removeAllVideos" title="removeAllVideos"></a>
	<h3 class="method-title"><code><a href="#//api/name/removeAllVideos">&ndash;&nbsp;removeAllVideos</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     清空videolist中所有视频URL（视频未删除）
@discussion
     视频处理进行中时不能操作</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)removeAllVideos</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/startConcat" title="startConcat"></a>
	<h3 class="method-title"><code><a href="#//api/name/startConcat">&ndash;&nbsp;startConcat</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     视频拼接(数量大于1才会进行拼接)</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)startConcat</code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>@discussion
     调用addVideos添加视频之后，将添加的视频按先后顺序拼接为一个视频文件（源视频未删除）
     调用前必须使用addVideos:添加视频，或使用concatVideos:方法进行添加
     拼接进度会在onConcatProgressChanged:代理方法中回调
     拼接完成会在onConcatFinish:代理方法中回调</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/concatVideos:" title="concatVideos:"></a>
	<h3 class="method-title"><code><a href="#//api/name/concatVideos:">&ndash;&nbsp;concatVideos:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
     视频拼接并添加至editor的videolist中</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)concatVideos:(NSArray&lt;__kindofNSURL*&gt; *)<em>videoList</em></code></div>

		    
			

			

			

			
			<div class="method-subsection discussion-section">
				<h4 class="method-subtitle">Discussion</h4>
				<p>@discussion
     将videoList中的视频按先后顺序拼接为一个视频文件。
     同时添加至videolist中，会覆盖videolist原有数据
     (建议使用同分辨率视频进行合成，)</p>
			</div>
			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/concatVideos:resizeMode:resolution:outputURL:" title="concatVideos:resizeMode:resolution:outputURL:"></a>
	<h3 class="method-title"><code><a href="#//api/name/concatVideos:resizeMode:resolution:outputURL:">&ndash;&nbsp;concatVideos:resizeMode:resolution:outputURL:</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>@abstract
视频拼接并添加至editor的videolist中</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)concatVideos:(NSArray&lt;__kindofNSURL*&gt; *)<em>videoList</em> resizeMode:(KSYMEResizeMode)<em>mode</em> resolution:(CGSize)<em>resolution</em> outputURL:(NSURL *)<em>outURL</em></code></div>

		    
			
			<div class="method-subsection arguments-section parameters">
				<h4 class="method-subtitle parameter-title">Parameters</h4>
				<table class="argument-def parameter-def">
				
					<tr>
						<th scope="row" class="argument-name"><code>videoList</code></th>
						<td><p>视频列表</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>mode</code></th>
						<td><p>视频画面 resize 模式(裁剪、填充)</p></td>
					</tr>
				
					<tr>
						<th scope="row" class="argument-name"><code>resolution</code></th>
						<td><p>视频画面输出分辨率</p>

<p>@discussion
    输出分辨率比导入视频的分辨率高会造成画面模糊</p></td>
					</tr>
				
				</table>
			</div>
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div><div class="section-method">
	<a name="//api/name/cancelConcat" title="cancelConcat"></a>
	<h3 class="method-title"><code><a href="#//api/name/cancelConcat">&ndash;&nbsp;cancelConcat</a></code>
</h3>

	<div class="method-info">
		<div class="pointy-thing"></div>

		<div class="method-info-container">
			
			
			<div class="method-subsection brief-description">
				<p>取消合成</p>
			</div>
			
		    

			<div class="method-subsection method-declaration"><code>- (void)cancelConcat</code></div>

		    
			

			

			

			

			

			

			
			<div class="method-subsection declared-in-section">
				<h4 class="method-subtitle">Declared In</h4>
				<p><code class="declared-in-ref">KSYMEConcator.h</code></p>
			</div>
			
			
		</div>
	</div>
</div>
						</div>
						
					</div>
					
					

                    
                    
          
				</main>

				<footer>
					<div class="footer-copyright">
						
						<p class="copyright">Copyright &copy; 2018 Kingsoft. All rights reserved. Updated: 2018-02-09</p>
						
						
						<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
						
					</div>
				</footer>
			</div>
		</div>
	</article>

	<script src="../js/script.js"></script>
</body>
</html>